package com.vdm.service.impl;

import com.vdm.dao.DispatchInfoMapper;
import com.vdm.model.DispatchInfo;
import com.vdm.service.DispatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class DispatchServiceImpl implements DispatchService {

    @Autowired
    DispatchInfoMapper dispatchInfoMapper;

    @Override
    public List<HashMap<String,Object>> tripRateAnalysis(Map map){
        return dispatchInfoMapper.tripRateAnalysis(map);
    }

    @Override
    public List<HashMap<String, Object>> carSubsidize(Map map) {
        return dispatchInfoMapper.carSubsidize(map);
    }

    @Override
    public int insertSelective(DispatchInfo dispatchInfo) {
        return dispatchInfoMapper.insertSelective(dispatchInfo);
    }

    @Override
    public List<DispatchInfo> dispatchInfoList() {
        return dispatchInfoMapper.dispatchInfoList();
    }

    @Override
    public int getDispatchInfoCount() {
        return dispatchInfoMapper.getDispatchInfoCount();
    }

    @Override
    public DispatchInfo selectByPrimaryKey(Integer id) {
        return dispatchInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DispatchInfo dispatchInfo) {
        return dispatchInfoMapper.updateByPrimaryKeySelective(dispatchInfo);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dispatchInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<DispatchInfo> dispatchListByCond(Map map) {
        return dispatchInfoMapper.dispatchListByCond(map);
    }

    @Override
    public int getDispatchListByCondCount(Map map) {
        return dispatchInfoMapper.getDispatchListByCondCount(map);
    }
}
